<?php
$db = new Database();
// Get Modal Box Content per Action
if(isset($_POST['action'])){
    if($_POST['action']=="login"){
        echo loginModal();
    }elseif($_POST['action']=="register"){
        echo register();
    }elseif($_POST['action']=="registerCompany"){
        echo register_company();
    }elseif($_POST['action']=="message"){
        $dataID = $_POST['dataID'];
        echo message($dataID);
    }elseif($_POST['action']=="help"){
        ?>
        <label style="margin-left: 5px;">Your a new user and you dont know what to do?</label>
        <div class="hr"></div>
        <label style="margin-left: 5px;">
            If your a new user and you need to create a new company to create your form and organizational chart of your company,
            Formalistics help you to do that.
            <br /><br />
            1. Your only need to do is to register your own company by clicking the <b style="color: #000;font-weight: bold;">REGISTER COMPANY</b>
            at the top right side of the screen and fill up those mandatory field in the form.<br />
            2. After you create your own company user, you need to login, to establish and set up your organizational chart of your company.<br />
            3. Then, once you set up all the steps on the portal. You can give your company to your company member to be able to register them into our
            system.<br />
            <div class="hr"></div>
            <b style="color: #000;font-weight: bold;">Company Code</b> - is used to determine where the user belong using the company code of the company. <br />
            <b style="color: #000;font-weight: bold;">Login Portal</b> - a link to show a login form and redirect your inside the portal. <br />
            <b style="color: #000;font-weight: bold;">Register User</b> -  a link to register a member of the company. <br />
            <b style="color: #000;font-weight: bold;">Register Company </b>-  a link to register and establish your own company on the portal. <br />
        </label>
        <?php
    }
}


?>